# 2. selenium操作浏览器
# 在搜狗（https://www.sogou.com/）搜索天气预报
# 1.打开浏览器，进入搜狗主页
# 2.搜索框输⼊天气预报”，点击搜狗搜索
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://www.sogou.com/")
query = driver.find_element(By.ID,"query")
query.send_keys("天气预报")
stb = driver.find_element(By.ID, "stb")
stb.click()
time.sleep(4)
driver.quit()





